-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IOU - Fix Infinite loading spinner on split bill with invalid phone number #8314
Conversation
src/libs/actions/IOU.js
Outdated
if (response.jsonCode !== 200) { | ||
processIOUErrorResponse(response); | ||
return; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (response.jsonCode !== 200) { | |
processIOUErrorResponse(response); | |
return; | |
} | |
if (response.jsonCode !== 200) { | |
return response; | |
} | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that I see it 😅
PR is ready |
|
IOU - Fix Infinite loading spinner on split bill with invalid phone number (cherry picked from commit 3f6396c)
…8314 🍒 Cherry pick PR #8314 to staging 🍒
🚀 Cherry-picked to staging by @marcaaron in version: 1.1.46-1 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
Details
Return early on error, and let the next
.then
handle itFixed Issues
$ #8308
Tests
Please enter a valid phone number, with the country code (e.g. +1234567890)
Success case
PR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
displayName
propertythis
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)PR Reviewer Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
).src/languages/*
filesSTYLE.md
) were followed/** comment above it */
displayName
propertythis
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)QA steps
Please enter a valid phone number, with the country code (e.g. +1234567890)
Success case
Screenshots
Web
Screen.Recording.2022-03-25.at.7.34.58.AM.mov
Mobile Web
Screen.Recording.2022-03-25.at.8.08.39.AM.mov
Desktop
Screen.Recording.2022-03-25.at.7.55.33.AM.mov
iOS
Screen.Recording.2022-03-25.at.8.04.31.AM.mov
Android
screen-20220325-080632.mp4